home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text1397.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.8 KB  |  43 lines

  1. Terry,
  2.  
  3. > Presently in xmosaic PRE is presented in a typewriter font; this is okay
  4. > for code examples (unless you have in-line annotations that you want 
  5. > distinguished from the code) but not for all forms of text that should
  6. > be displayed verbatim (poetry).  So either two PREs are needed, or the
  7. > font change in PRE should be invoked specifically, perhaps by using
  8. > CODE inside PRE.
  9.  
  10. HTML+ has a style attribute for the PRE tag with just such ideas in mind:
  11.  
  12. <!-- Preformatted text with fixed pitch font,
  13.      respecting original spacing and newlines.
  14.      The style attribute allows authors to specify
  15.      alternative styles, e.g. "poem" which browsers
  16.      could render in a proportional font.
  17.  -->
  18. <!ELEMENT PRE - - (%text;)+>
  19. <!ATTLIST PRE
  20.     id      ID      #IMPLIED -- link destination --
  21.     style   CDATA   #IMPLIED -- various styles --
  22.     width   NUMBER  #IMPLIED -- e.g. 40, 80, 132 -->
  23.  
  24. My expectation is there are a small number of useful styles for which we can
  25. agree on the names and how to render them. One problem with using a CDATA
  26. (free text) field for style names is that browsers may not recognise less
  27. common ones. It seems to me that it is worth breaching the principle of
  28. presentation independence slightly to include some rendering hints to allow
  29. for graceful degradation. With this in mind I am now considering adding a
  30. justification attribute to the paragraph tag <P>, e.g. <P CENTER>, together
  31. with a line break tag <BR>.
  32.  
  33. A wider issue is changing character sets, e.g. from Latin-1 to Old English
  34. (or at a more mundane level to Asian character sets).
  35.  
  36. Switching to 16 bit fonts will help (at least for extant languages). However,
  37. I see no real alternative in the longer term to building in support for
  38. outline fonts, e.g. TrueType, together with full support for the ISO entity
  39. definitions.
  40.  
  41. Dave Raggett
  42.  
  43.